<?php

namespace app\api\controller;

use app\BaseController;
use app\common\lib\Status;
use think\exception\HttpResponseException;

// 如果场景不需要用户要登录的场景继承这个ApiBase
class ApiBase extends BaseController
{
    public function initialize()
    {
        parent::initialize();
    }

    public function show(...$args)
    {
        throw new HttpResponseException(Status::show(...$args));
    }
}
